package com.mlming.springboot.service;

import com.github.pagehelper.PageInfo;
import com.mlming.springboot.vo.ProductDetailVo;
import com.mlming.springboot.vo.ResponseVo;

import java.util.List;

public interface ProductService {
    /**
     * 按照categoryid查询商品列表
     * @param categoryId
     * @param pageNum
     * @param pageSize
     * @return
     */
    ResponseVo<PageInfo> getProducts(Integer categoryId, Integer pageNum, Integer pageSize) throws InterruptedException;

    /**
     * 根据productId查询商品
     * @param productId
     * @return
     */
    ResponseVo<ProductDetailVo> getProductDetailById(Integer productId);
}
